package com.hiultra.archive.service.impl;

import java.util.List;

import com.hiultra.archive.domain.ArchiveBorrow;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hiultra.archive.mapper.ArchiveBoxInoutdetailMapper;
import com.hiultra.archive.domain.ArchiveBoxInoutdetail;
import com.hiultra.archive.service.IArchiveBoxInoutdetailService;

/**
 * 档案盒进出记录详情Service业务层处理
 *
 * @author 派大星
 * @date 2024-07-23
 */
@Service
public class ArchiveBoxInoutdetailServiceImpl implements IArchiveBoxInoutdetailService
{
    @Autowired
    private ArchiveBoxInoutdetailMapper archiveBoxInoutdetailMapper;

    /**
     * 查询档案盒进出记录详情
     *
     * @param id 档案盒进出记录详情主键
     * @return 档案盒进出记录详情
     */
    @Override
    public ArchiveBoxInoutdetail selectArchiveBoxInoutdetailById(Long id)
    {
        return archiveBoxInoutdetailMapper.selectArchiveBoxInoutdetailById(id);
    }

    /**
     * 查询档案盒进出记录详情列表
     *
     * @param archiveBoxInoutdetail 档案盒进出记录详情
     * @return 档案盒进出记录详情
     */
    @Override
    public List<ArchiveBoxInoutdetail> selectArchiveBoxInoutdetailList(ArchiveBoxInoutdetail archiveBoxInoutdetail)
    {
        return archiveBoxInoutdetailMapper.selectArchiveBoxInoutdetailList(archiveBoxInoutdetail);
    }

    /**
     * 新增档案盒进出记录详情
     *
     * @param archiveBoxInoutdetail 档案盒进出记录详情
     * @return 结果
     */
    @Override
    public int insertArchiveBoxInoutdetail(ArchiveBoxInoutdetail archiveBoxInoutdetail)
    {
        return archiveBoxInoutdetailMapper.insertArchiveBoxInoutdetail(archiveBoxInoutdetail);
    }

    /**
     * 修改档案盒进出记录详情
     *
     * @param archiveBoxInoutdetail 档案盒进出记录详情
     * @return 结果
     */
    @Override
    public int updateArchiveBoxInoutdetail(ArchiveBoxInoutdetail archiveBoxInoutdetail)
    {
        return archiveBoxInoutdetailMapper.updateArchiveBoxInoutdetail(archiveBoxInoutdetail);
    }

    /**
     * 批量删除档案盒进出记录详情
     *
     * @param ids 需要删除的档案盒进出记录详情主键
     * @return 结果
     */
    @Override
    public int deleteArchiveBoxInoutdetailByIds(Long[] ids)
    {
        return archiveBoxInoutdetailMapper.deleteArchiveBoxInoutdetailByIds(ids);
    }

    /**
     * 删除档案盒进出记录详情信息
     *
     * @param id 档案盒进出记录详情主键
     * @return 结果
     */
    @Override
    public int deleteArchiveBoxInoutdetailById(Long id)
    {
        return archiveBoxInoutdetailMapper.deleteArchiveBoxInoutdetailById(id);
    }

    /**
     * 批量新增档案盒出入记录
     *
     * @param archiveBoxInoutdetailList 档案盒出入记录
     * @return 结果
     */
    @Override
    public int batchInsertArchiveBoxInoutdetail(List<ArchiveBoxInoutdetail> archiveBoxInoutdetailList){
        return archiveBoxInoutdetailMapper.batchInsertArchiveBoxInoutdetail(archiveBoxInoutdetailList);
    }


    /**
     * 获取档案盒详细信息
     */
    @Override
    public List<ArchiveBoxInoutdetail> selectArchiveBoxByRecordId(String recordId)
    {
        return archiveBoxInoutdetailMapper.selectArchiveBoxByRecordId(recordId);
    }
}
